<?php include($folder.'/layouts/templates/backend/header.tpl') ?>
<?php
$master['toolbarItems'] = array(
	'<input type="submit" value="Mentés" class="button" />',
	'<input type="button" value="Vissza" class="button" onclick="javascript:window.location.href=\''.$prefix.'/adminisztracio/unnepek?vissza\'" />'
);
?>
<?php include($folder.'/layouts/templates/backend/middle.tpl') ?>
<?php if (!empty($_SESSION['id'])): ?>
<?php echo inputHidden(array(
		'dataBinding' => 'main',
		'dataField' => 'id')) ?>
<table cellspacing="0">
	<tr>
		<td class="label">Hónap:</td>
		<td class="fieldControl"><?php echo htmlSelect(array(
				'id' => 'months',
				'dataField' => 'month_id',
				'dataBinding' => 'main',
				'attributes' => 'style="width:400px"')) ?>
		</td>
	</tr>
	<tr>
		<td class="label">Nap:</td>
		<td class="fieldControl"><?php echo inputText(array(
				'dataBinding' => 'main',
				'dataField' => 'dayofmonth',
				'attributes' => 'style="width:400px"')) ?>
		</td>
	</tr>
	<tr>
		<td class="label">Megnevezés:</td>
		<td class="fieldControl"><?php echo inputText(array(
				'dataBinding' => 'main',
				'dataField' => 'name',
				'attributes' => 'style="width:400px"')) ?>
		</td>
	<tr>
		<td class="label" valign="top">Leírás:</td>
		<td class="fieldControl"><?php echo inputTextArea(array(
			'dataBinding' => 'main',
			'dataField' => 'content',
			'attributes' => 'style="width:400px;height:400px"')) ?>
		</td>
	</tr>
</table>
<?php endif; ?>
<?php include($folder.'/layouts/templates/backend/footer.tpl') ?>